/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Portions created by the Initial Developer are
 * Copyright (C) 2012 the Initial Developer.
 * All Rights Reserved.
 *
 * The Original Code is "http://semi-frame.googlecode.com/svn/trenk/".
 *
 * The Initial Developer of the Original Code is the author below.
 */
/**
 * @file Rs232cBase.h
 * @brief auto generated.
 * @author morningcloud
 * @date 2011/03/11
 */

//#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include "semi/util/StringUtil.h"

#ifndef RS232CBASE_H_
#define RS232CBASE_H_

namespace semi {

class Rs232cBase {
public:
    Rs232cBase();
    virtual ~Rs232cBase();

    bool start();
    std::string sendForReceive(std::string msg);
    bool end();

    int fd;
};

}

#endif /* RS232CBASE_H_ */
